package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

/**
 * @auther zzyy
 * @create 2020-02-18 10:40
 */
@Service
public class PaymentServiceImpl implements PaymentService {
//    @Resource
//    private PaymentDao paymentDao;

    public int create(Payment payment) {

        return payment.getId().intValue();
    }

    public Payment getPaymentById(Long id) {
        Payment payment = new Payment();
        payment.setId(id);
        return payment;
    }
}
